package com.ai.mapper.security;

import com.ai.entity.security.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2023-04-04 19:46:07
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 获取当前用户绑定的角色
     * @param userId
     * @return
     */
    List<SysRole> getBindRoleList(@Param("userId") Integer userId);
}
